<?
$rightCol = 1;

include('includes/appInit.php');
$library = new Library();
$events  = new Events();

include('includes/header.php');
?>
	<div id="subPage">
		<div class="leftCol">
		
			<div id="subPageContent" class="flex">
				<h1><?=$translate->_('Account Homepage'); ?></h1>
				<? if ($_GET['newAccount'] == 1) { ?>
				<p><b>Welcome, <?=$_SESSION['fullName']; ?></b><br />
				Some introductory text for new account.
				</p>
				<? } elseif ($_GET['existingAccount'] == 1) { ?>
				<p><b>It looks as though you already have an account with us.</b><br />If you would
				like to edit your account information, <a href="accountEdit.php">click here</a>.</p>
				<? } elseif ($_GET['action'] == 'newAccount') { ?>
				
				<? } elseif ($_GET['action'] == 'eventRegistration') { ?>
				
				<? } elseif ($_GET['action'] == 'libraryCheckout') { ?>
				
				<? } ?>
				
				<h2>Library items checked out</h2>
				<? echo $library->getCheckedOutBooksByMember($_SESSION['memberID']); ?>
				
				<h2>Events you are registered to attend</h2>
				<? echo $events->getRegisteredEventsByMember($_SESSION['memberID']); ?>
			</div>
		</div>
		<div class="rightCol noPrint">
			<div class="rightColInner flex" style="height: 500px;">
				<? include('includes/rightColumn.php'); ?>
			</div>
		</div>
		<div style="clear: both;"></div>
	</div>	
	
	
<?
include('includes/footer.php');
?>